package com.asa.common.net

import java.lang.Exception

sealed class Result<out T:Any> {

    data class Success<out T:Any>(val data:T):Result<T>()

    data class SuccessNull<out T:Any>(val data:T?):Result<T>()

    data class NetError(val exception:Exception):Result<Nothing>()

    data class ServiceError(val code:Int,val msg:String):Result<Nothing>()

}